import { RouteRecordRaw } from 'vue-router'
import Layout from '@/layout/index.vue'

const homeRouter: RouteRecordRaw[] = [
  {
    path: '/home',
    component: Layout,
    redirect: '/home/dashboard',
    meta: {
      title: '首页',
      icon: 'HomeFilled'
    },
    children: [
      {
        path: 'dashboard',
        component: () => import('@/views/home/dashboard.vue'),
        meta: {
          title: '首页',
          icon: 'Briefcase'
        }
      }
    ]
  }
]

export default homeRouter
